{% from "v2ex/macros.html" import nav_cate with context %}
{% from "v2ex/macros.html" import nav_subcate with context %}
{% from "v2ex/macros.html" import list_cate with context %}
{% from "v2ex/macros.html" import list_post with context %}
<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <title>{% block title %}{% endblock %}</title>
	<meta name="Content-Type" content="text/html;charset=utf-8" />
    <link rel ="shortcut icon" href="/static/favicon.ico">
    <link rel="stylesheet" type="text/css" media="screen" href="/static/v2ex/css/bootstrap.min.css" />
    <link rel="stylesheet" type="text/css" media="screen" href="/static/v2ex/css/style.css" />
    <script src="/static/v2ex/js/jquery-2.1.4.min.js" type="text/javascript"></script>
    <script src="/static/v2ex/js/bootstrap.min.js" type="text/javascript"></script>
</head>
<body>
<div id="Top">
        <div class="content">
            <div class="col-md-8 left-nav">
            <ul>
                <li><a class="top" href="/">SJZLUG</a></li>
                <li><a class="top" href="/active">线下活动</a></li>
                <li><a class="top" href="/bbs">LUG论坛</a></li>
                <li><a class="top" href="/lores">知识粮库</a></li>
                <li><a class="top" href="/clips">Clips</a></li>
                <li><a class="top" href="gitee.com/sjzlug/sjzlug.org">码云</a></li>
            </ul>
            </div>
            <div class="col-md-4 right-nav">
                <ul>
                    {% if data.curr_user.is_active %}
                    <li><a class="top" href="/">首页</a></li>
                    <li><a class="top" href="/setting">{{ data.curr_user.name }}</a></li>
                    <li><a class="top" href="/setting">设置</a></li>
                    <li><a class="top" href="/signout">登出</a></li>
                    {% else %}
                    <li><a class="top" href="/signin">登录</a></li>
                    <li><a class="top" href="/signup">注册</a></li>
                    {% endif %}
                    <li><a class="top" href="/content">联系我们</a></li>
                </ul>
            </div>
        </div>
</div>
<div id="Wrapper">
    <div class="content">
        <div id = "Leftbar"></div>
        <div id = "Rightbar">
            <div class="sep20"></div>
            {% if data.curr_user.is_active %}
            <div class="box">
                <div class="cell">
                    <div class="user_status">
                        <div class="user_info">
                            <div class="sep10"></div>
                            <div style="text-align:center;" class="avatar" > 
                                <span>
                                    {% if data.curr_user.is_active %}                       
                                    <a href="/avatar"><img  alt="image" class="img-circle" src="{{ data.curr_user.avatar }}"></a>
                                    {% else %}
                                    <img alt="image" class="img-circle" src="/static/img/avatar.jpg">
                                    {% endif %}
                                </span>
                            </div>
                            <div class="sep10"></div>
                            <div>
                                <div class="fr">
                                    <span style="font-size:10px;color:#ccc; "> 注册于3天前</span>
                                </div>
                                {{ data.curr_user.name }}
                            </div>
                            <div class="sep5"></div>
                            <span class="fade">
                                {{ data.curr_user.nick }}
                            </span>
                        </div>
                    </div>
                </div>
                <div class="cell">
                    <div class="fav_statics" >
                        <div class="favcate">
                            <div class="favnum">0</div>
                            <div class="favname">分类收藏</div>
                        </div>
                        <div class="postfav">
                            <div class="favnum">0</div>
                            <div class="favname">主题收藏</div>
                        </div>
                        <div class="fllow">
                            <div class="favnum">0</div>
                            <div class="favname">特别关注</div>
                        </div>
                        <div class="clear"></div>
                    </div>
                </div>
                <div class="cell">
                    <div style="width: 250px; background-color: #f0f0f0; height: 3px; vertical-align: middle;">
                        <div style="width: 11px; background-color: #ccc; height: 3px;"></div>
                    </div>
                </div>
                <div class="cell">
                    <div class = "newpost">
                        <a href="/newpost"><span class="glyphicon glyphicon-pencil" style="color:#6f5499;" ></span>&nbsp;创作新主题</a>
                    </div>
                </div>
                <div class="inner">
                    <div class="fr" id="money">
                        <a href="/balance" class="balance_area" style="">20 <img src="/static/v2ex/img/silver.png" alt="S" align="absmiddle" border="0" style="padding-bottom: 2px;"> 4 <img src="/static/v2ex/img/bronze.png" alt="B" align="absmiddle" border="0"></a>
                    </div>
                    <a href="/messages" class="fade">0 条未读提醒</a>
                </div>
            </div>
            {% else %}
             <div class="box">
                <div class="cell">
                    <strong>SJZLUG = 石家庄 Linux User Group</strong>
                    <div class="sep5"></div>
                    <span class="fade">SJZLUG 是一个大家交流学习的地方</span>
                </div>
                <div class="inner">
                    <div class="sep5"></div>
                    <div align="center"><a href="/signup" class="super normal button">现在注册</a>
                    <div class="sep5"></div>
                    <div class="sep10"></div>
                    已注册用户请 &nbsp;<a href="/signin">登录</a></div>
                </div>
            </div>           
            {% endif %}
            {% block rightbar %}
            {% endblock %}
        </div>
        <div id = "Main" >
            {% block body %}
            {% endblock %}
        </div>
    </div>
    <div class="c"></div>
    <div class="sep20"></div>
</div>
<div id="Bottom">
    <div class="content">
        <div class="inner">
            <div class="sep10"></div>
            <strong>
                <a class="dark" href="/about">关于</a>&nbsp;
                <span class="snow">·</span>&nbsp;
                <a class="dark" href="/faq">FAQ</a>&nbsp;
                <span class="snow">·</span>&nbsp;
                <a class="dark" href="/dest">我们的愿景</a>&nbsp;
                <span class="snow">·</span>&nbsp;
                <a class="dark" href="/ad">广告投放</a>&nbsp;
                <span class="snow">·</span>&nbsp;
                <a class="dark" href="/join">赞助与鸣谢</a>&nbsp;
                <span class="snow">·</span>&nbsp;
                <a class="dark" href="/join">123&nbsp;&nbsp;人在线</a>&nbsp;
                <span class="snow">·</span>&nbsp;
                <a class="dark" href="/join">最高记录&nbsp;&nbsp;123</a>&nbsp;
            </strong>
            <div class="sep10"></div>
            石家庄Linux用户组 版权所有
            <div class="sep5"></div>
            清风&nbsp;<span class="snow">·</span>&nbsp;辉&nbsp;<span class="snow">·</span>&nbsp;百无一用是书生&nbsp;<span class="snow">·</span>&nbsp;红壶吃猬队&nbsp;<span class="snow">·</span>&nbsp;寒宇.改&nbsp;<span class="snow">·</span>&nbsp;Janl
            <div class="sep10"></div>
            <span class="small fade">
                VERSION: 0.0.0.3 · loading time:27ms 
            </span>
        </div>
    </div>
</div>
</body>
</html>
